#pragma once

#include "BmpBtn.h"

class GUI_API CTimeCtrl :	public CBmpBtn
{
public:
	CTimeCtrl(void);
	virtual ~CTimeCtrl(void);

	CTimeCtrl(UINT nID);
	CTimeCtrl(wstring strCaption,UINT nID);
	CTimeCtrl(DWORD dwStyle, wstring strCaption,const CRect &rc, UINT nID);
	CTimeCtrl(DWORD dwStyle, wstring strCaption, int x, int y, int cx, int cy, UINT nID);
	virtual void Paint(CDC* pDC);

	void	SetTimeValue( int nInteger,int nDecimal );
	void	ReCalculatorRect();
	void	IncMinute();
	void	DecMinute();


public:
	void SetAutoGetSysTime(BOOL bAutoGetSysTime = TRUE);
	void SetTime(SYSTEMTIME time);
	void GetTime(SYSTEMTIME &time);
	SYSTEMTIME GetTime( );


protected:
	BOOL m_bAutoGetSysTime;
	SYSTEMTIME m_time;


};
